#include<iostream>
#include<pthread.h>
#include<string>
pthread_mutex_t mutex;
void* start_routine(void* msg)
{
    pthread_mutex_lock(&mutex);
    pthread_mutex_lock(&mutex);
    std::string _msg = static_cast<char*>(msg);
    std::cout<< _msg <<std::endl;
    pthread_mutex_unlock(&mutex);
    return nullptr;
}

int main()
{
    pthread_t td;
    pthread_mutex_init(&mutex,nullptr);
    pthread_create(&td,nullptr,start_routine,(void*)"thread 1");
    while(true)
    {
        ;
    }

    return 0;
}
